﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace Model
{
    [DataContract]
    public class Customer
    {
        [DataMember]
        private string name;
        [DataMember]
        private string address;
        [DataMember]
        private string phoneNo;
        [DataMember]
        private string email;
        [DataMember]
        private string type;

        public Customer(string name, string address, string phoneNo, string email, string type)
        {
            this.name = name;
            this.address = address;
            this.phoneNo = phoneNo;
            this.email = email;
            this.type = type;
        }
        public Customer(string phoneNo)
        {
            this.phoneNo = phoneNo;
        }
        public Customer() { }

        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        public string Address
        {
            get { return address; }
            set { address = value; }
        }
        public string PhoneNo
        {
            get { return phoneNo; }
            set { phoneNo = value; }
        }
        public string Email
        {
            get { return email; }
            set { email = value; }
        }
        public string Type
        {
            get { return type; }
            set { type = value; }
        }
    }
}
